package com.example.project.projectspringcloud.entity.user;

import com.example.project.projectspringcloud.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class Collect extends BaseEntity {

    /**
     * 收藏用户
     */
    private Integer userId;

    /**
     * 收藏内容ID
     */
    private Integer dataId;

    /**
     * 收藏内容类型 1. 用户, 2. 视频
     */
    private Integer type;

    /**
     * 收藏操作类型 1. 喜欢/点赞, 2. 收藏
     */
    private Integer operation;

    public Collect() {

    }

    public Collect(Integer userId, Integer type) {
        this.userId = userId;
        this.type = type;
    }

    public Collect(Integer userId, Integer type, Integer dataId) {
        this.userId = userId;
        this.type = type;
        this.dataId = dataId;
    }

    public Collect(Integer userId, Integer type, Integer operation, Integer dataId) {
        this.userId = userId;
        this.type = type;
        this.operation = operation;
        this.dataId = dataId;
    }
}